

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <script type="text/javascript" src ="${resource(dir:'js',file:'function.js')}">
        </script>
        <title>新增GeoInfo</title>         
    </head>
    <body>
        <div class="body">
            <h1>新增GeoInfo</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${geoInfoInstance}">
            <div class="errors">
                <g:renderErrors bean="${geoInfoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name" width="18%">
                                    <label for="city">City:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'city','errors')}" width="32%">
                                    <input type="text" id="city" name="city" value="${fieldValue(bean:geoInfoInstance,field:'city')}"/>
                                </td>
						
                                <td valign="top" class="name" width="18%">
                                    <label for="country">Country:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'country','errors')}" width="32%">
                                    <input type="text" id="country" name="country" value="${fieldValue(bean:geoInfoInstance,field:'country')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name" width="18%">
                                    <label for="description">Description:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'description','errors')}" width="32%">
                                    <input type="text" id="description" name="description" value="${fieldValue(bean:geoInfoInstance,field:'description')}"/>
                                </td>
						
                                <td valign="top" class="name" width="18%">
                                    <label for="district">District:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'district','errors')}" width="32%">
                                    <input type="text" id="district" name="district" value="${fieldValue(bean:geoInfoInstance,field:'district')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name" width="18%">
                                    <label for="fullName">Full Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'fullName','errors')}" width="32%">
                                    <input type="text" id="fullName" name="fullName" value="${fieldValue(bean:geoInfoInstance,field:'fullName')}"/>
                                </td>
						
                                <td valign="top" class="name" width="18%">
                                    <label for="lat">Lat:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'lat','errors')}" width="32%">
                                    <input type="text" id="lat" name="lat" value="${fieldValue(bean:geoInfoInstance,field:'lat')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name" width="18%">
                                    <label for="lng">Lng:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'lng','errors')}" width="32%">
                                    <input type="text" id="lng" name="lng" value="${fieldValue(bean:geoInfoInstance,field:'lng')}"/>
                                </td>
						
                                <td valign="top" class="name" width="18%">
                                    <label for="province">Province:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'province','errors')}" width="32%">
                                    <input type="text" id="province" name="province" value="${fieldValue(bean:geoInfoInstance,field:'province')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name" width="18%">
                                    <label for="street">Street:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'street','errors')}" width="32%">
                                    <input type="text" id="street" name="street" value="${fieldValue(bean:geoInfoInstance,field:'street')}"/>
                                </td>
						
                                <td valign="top" class="name" width="18%">
                                    <label for="zip_code">Zipcode:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:geoInfoInstance,field:'zip_code','errors')}" width="32%">
                                    <input type="text" id="zip_code" name="zip_code" value="${fieldValue(bean:geoInfoInstance,field:'zip_code')}"/>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="新增" /></span>
					<span class="button"><input class="formbutton" type="reset" value="重置" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
